package com.dragon.graduation.student.mapper;

import com.dragon.graduation.student.entity.StudentEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 学生表 Mapper 接口
 * </p>
 *
 * @author dragon
 * @since 2025-02-28 21:22:17
 */
@Mapper
public interface StudentMapper extends BaseMapper<StudentEntity> {

    @Select("select * from db_student where user_id = #{id}")
    StudentEntity selectByUserId(Integer id);
}
